package ex.com.jm.food.service.impl;

import java.util.List;

import ex.com.jm.food.dao.UserEvalDao;
import ex.com.jm.food.entity.Evaluation;
import ex.com.jm.food.service.UserEvalService;

public class UserEvalServiceImpl implements UserEvalService {

	
	private UserEvalDao userEvalDao;
	public UserEvalDao getUserEvalDao() {
		return userEvalDao;
	}

	public void setUserEvalDao(UserEvalDao userEvalDao) {
		this.userEvalDao = userEvalDao;
	}

	@Override
	public List<Evaluation> getEvals(String menuId, int initPage, int pageRow) {
		// TODO Auto-generated method stub
		return this.getUserEvalDao().getEvals(menuId, initPage, pageRow);
	}

	@Override
	public int evalCount(String menuId) {
		// TODO Auto-generated method stub
		return this.getUserEvalDao().evalCount(menuId);
	}

	@Override
	public Object saveEval(Evaluation evaluation) {
		// TODO Auto-generated method stub
		return this.getUserEvalDao().saveEval(evaluation);
	}

}
